package com.restkeeper.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.restkeeper.entity.SystemConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SystemConfigMapper extends BaseMapper<SystemConfig> {
    SystemConfig selectOneRate();

    SystemConfig selectOneByType(@Param("type") String type);

    SystemConfig selectOneByKey(@Param("key") String key);
    List<SystemConfig> selectByType(@Param("type") String type);
}
